package com.app.ytong.video;

import android.annotation.SuppressLint;
import android.content.res.Configuration;
import android.os.Bundle;
import android.widget.MediaController;


import com.app.ytong.R;
import com.app.ytong.basis.BasisActivity;


import butterknife.BindView;
import my.LogUtil;

/**
 * 警情列表
 */
public class VideoIndexActivity extends BasisActivity {

    @BindView(R.id.videoview)
    public CustomerVideoView videoview;
    @SuppressLint("SourceLockedOrientationActivity")
    @Override
    public void initViews() {
        setContentView(R.layout.video_list_item);
    }

    @Override
    public void initData(Bundle savedInstanceState) {
        super.initData(savedInstanceState);
        String path = "https://hls01open.ys7.com/openlive/3e57b861a34b49f3a67cac65da0441af.hd.m3u8";
        videoview.setVideoPath(path);
        videoview.setMediaController(new MediaController(this));
        videoview.requestFocus();
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
    }


    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        LogUtil.i("onConfigurationChanged------->");
    }




}
